package com.abysscore.yachtdesign.delphi;

import java.awt.Color;

import com.abysscore.yachtdesign.T3DCoordinate;
import com.abysscore.yachtdesign.TFreeDelftSeriesResistanceData;
import com.abysscore.yachtdesign.TFreeKAPERResistanceData;

public class DelphiTools {
	public static byte[] SetLength(byte array[], long newSize)
	{
		byte newArray[] = new byte[(int) newSize];
		for(int i = 0 ; i < newSize ; i++)
		{
			newArray[i] = array[i];
		}
		return (newArray);
	} // END OF METHOD
	
	public static double[] SetLength(double array[], long newSize)
	{
		double newArray[] = new double[(int) newSize];
		for(int i = 0 ; i < newSize ; i++)
		{
			newArray[i] = array[i];
		}
		return (newArray);
	} // END OF METHOD

	public static void Move(byte b, T3DCoordinate output, int size) {
		// TODO Auto-generated method stub
		
	}

	public static void Move(byte b, Color output, int size) {
		// TODO Auto-generated method stub
		
	}
	public static void Move(byte b, double output, int size) {
		// TODO Auto-generated method stub
		
	}
	public static void Move(byte b, boolean output, int size) {
		// TODO Auto-generated method stub
		
	}
	public static void Move(int intValue, byte b, int size) {
		// TODO Auto-generated method stub
		
	}
	public static int SizeOf(Color output) {
		//TODO Just an estimation...
		return Integer.SIZE*5;
	}

	public static int SizeOf(T3DCoordinate output) {
		// TODO Just an estimation...
		return Integer.SIZE*4;
	}

	public static int SizeOf(int size) {
		
		return Integer.SIZE;
	}

	public static int SizeOf(double output) {
		
		return Double.SIZE;
	}

	public static int SizeOf(boolean output) {
		
		return Byte.SIZE;
	}

	/*public static int SizeOf(Class<TFreeDelftSeriesResistanceData> class1) {
		// TODO Just an estimation...
		return Integer.SIZE*12;
	}*/

	public static int SizeOf(Class<TFreeKAPERResistanceData> class1) {
		// TODO Just an estimation...
		return Integer.SIZE*12;
	}

	

	

	

}
